Automatic Differentiation and Backpropagation CS701

نویسندگان

  • Thomas Reps
  • Naveen Neelakandan
چکیده

This lecture discusses the relationship between automatic differentiation and backpropagation. Automatic differentiation (AD) is a technique that takes an implementation of a numerical function f (computed using floating-point numbers) and creates an implementation of f . We explain several techniques for performing AD. For forward-mode AD, we give an explicit transformation of the program, as well as a way to implement AD using operator overloading. We then reformulate AD as a path problem over a so-called computation graph. The path problem can be solved in either direction: one direction corresponds to forward-mode AD; the other corresponds to reverse-mode AD. Finally, we show how reverse-mode AD forms the basis of the backpropagation algorithm for training a neural net: in backpropagation, the weight adjustments computed for a neural net, a given input, and an expected output are found by performing reverse-mode AD on the computation graph for (i) the neural net, along with (ii) additional computation-graph elements for the sum-of-squared differences of the neural net’s output with the expected output.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Automatic Differentiation of Algorithms for Machine Learning

Automatic differentiation—the mechanical transformation of numeric computer programs to calculate derivatives efficiently and accurately—dates to the origin of the computer age. Reverse mode automatic differentiation both antedates and generalizes the method of backwards propagation of errors used in machine learning. Despite this, practitioners in a variety of fields, including machine learnin...

متن کامل

Backwards Differentiation in AD and Neural Nets: Past Links and New Opportunities

Backwards calculation of derivatives – sometimes called the reverse mode, the full adjoint method, or backpropagation, has been developed and applied in many fields. This paper reviews several strands of history, advanced capabilities and types of application – particularly those which are crucial to the development of brain-like capabilities in intelligent control and artificial intelligence.

متن کامل

A back propagation through time-like min–max optimal control algorithm for nonlinear systems

This paper presents a conjugate gradient-based algorithm for feedback min–max optimal control of nonlinear systems. The algorithm has a backward-in-time recurrent structure similar to the back propagation through time (BPTT) algorithm. The control law is given as the output of the one-layer NN. Main contribution of the paper includes the integration of BPTT techniques, conjugate gradient method...

متن کامل

The simple essence of automatic differentiation (Differentiable functional programming made easy)

Automatic differentiation (AD) in reverse mode (RAD) is a central component of deep learning and other uses of large-scale optimization. Commonly used RAD algorithms such as backpropagation, however, are complex and stateful, hindering deep understanding, improvement, and parallel execution. This paper develops a simple, generalized AD algorithm calculated from a simple, natural specification. ...

متن کامل

A Reverse-Mode Automatic Differentiation in Haskell Using the Accelerate Library

Automatic Differentiation is a method for applying differentiation strategies to source code, by taking a computer program and deriving from that program a separate program which calculates the derivatives of the output of the first program. Because of this, Automatic Differentiation is of vital importance to most deep learning tasks as it allows for the easy backpropogation of complex calculat...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016